<template lang="html">
<div class="game-table">
    <div class="form-group input-group search-group game-control-search">
      <input type="text" class="form-control" placeholder="请输入昵称" v-model="name"
      @keyup.enter="searchRankList">
      <span class="input-group-btn">
        <button class="btn btn-primary" type="button" @click="searchRankList">搜索</button>
      </span>
    </div>
    <table class="table table-bordered table-hover">
      <caption>金贝塔小游戏资料管理</caption>
      <thead>
        <tr>
          <th class="col-xs-1">名次</th>
          <th class="col-xs-2">用户</th>
          <th class="col-xs-1">战胜人数</th>
          <th class="col-xs-3">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item in list">
          <td class="col-sm-1">{{item.id}}</td>
          <td class="col-sm-2">{{item.phone}}</td>
          <td class="col-sm-1">{{item.award}}</td>
          <td class="col-sm-3"></td>
        </tr>
      </tbody>
    </table>
    <vue-page
      :pages="pages" 
      :get-list="getRankList"></vue-page>
</div>
</template>

<script src="./game-table.js"></script>
<style src="./game-table.css" scoped></style>
